import request from "@/utils/request";
export default {
  //生成订单
  createOrders(courseId){
    return request({
      url:`/orderService/order/createOrder/${courseId}`,
      method:'post'
    })
  },
  //根据订单id查询信息
  getOrdersInfo(orderId){
    return request({
      url:`/orderService/order/getOrderInfo/${orderId}`,
      method:'get'
    })
  },
  //生成二维码的方法
  createNative(orderNo){
    return request({
      url:`/orderService/pay-log/createNative/${orderNo}`,
      method:'get'
    })
  },
  //查询订单找他们的方法
  queryPayStatus(orderNo){
    return request({
      url:`/orderService/pay-log/queryPayStatus/${orderNo}`,
      method:'get'
    })
  }

}
